<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var i = 0;
        curMoney = 900;
        for (var money = 10000; money >= curMoney;) {
            i++;
            money -= curMoney;
            curMoney += 100;
            console.log(`这是第${i}次,还剩余${money}元`);

        }
    </script>
</head>

<body>

</body>

</html>